const HtmlWebpackPlugin = require('html-webpack-plugin');

module.exports = {
    entry:{
        spa:'../spa/entry_kfm_spa.js'
    },
    plugins: [
        new HtmlWebpackPlugin({
            title: '咖啡猫技术客栈',
            filename:'kfm_sap.html',
            template:'../spa/kfm_spa.html'
        }),
    ],
    output: {
        filename: '[name].[hash].js'
    },
    module: {
        loaders: [
            {
                test: /\.html$/,
                use: 'html-loader'
            },
            {
                test: /\.(png|svg|jpg|gif)$/,
                use: [
                    'file-loader'
                ]
            }
        ],
    },
};